import React from 'react'
import {connect} from 'react-redux'
import { Route,withRouter } from 'react-router'

//引入底部标签
import Home from '../Home/home.jsx'
import Order from '../Order/Order.jsx'
import My from '../My/My.jsx'
import BottomBar from '../BottomBar/BottomBar.jsx'

class Main extends React.Component {
  constructor(props) {
    super(props)
  }
  
  render() {
    return (
      <div>
        <Route exact path='/home' component={Home}/>
        <Route path='/order' component={Order}/>
        <Route path='/my' component={My}/>
        <BottomBar/>
      </div>
    )
  }
}

export default withRouter(connect()(Main))